<%--
  Created by IntelliJ IDEA.
  User: 40167
  Date: 2023/11/16
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%pageContext.setAttribute("APP_PATH",request.getContextPath());%>
<ul class="pagination" style="margin: 0 0 0 0;">
    <c:if test="${page.pageNo eq 1}">
        <li class="disabled"><a>首页</a></li>
    </c:if>
    <c:if test="${page.pageNo gt 1}">
        <li><a href="${APP_PATH}${page.url}&pageNo=1">首页</a></li>
    </c:if>
    <c:if test="${page.pageStart le 1}">
        <li class="disabled"><a><</a></li>
    </c:if>
    <c:if test="${page.pageStart gt 1}">
        <li><a href="${APP_PATH}${page.url}&pageNo=${page.pageStart-1}"><</a></li>
    </c:if>
    <c:forEach begin="${page.pageStart}" end="${page.pageEnd}" var="i">
        <c:if test="${page.pageNo eq i}">
            <li class="active"><a>${i}</a></li>
        </c:if>
        <c:if test="${page.pageNo ne i}">
            <li><a href="${APP_PATH}${page.url}&pageNo=${i}">${i}</a></li>
        </c:if>
    </c:forEach>
    <c:if test="${page.pageEnd ge page.pageCount}">
        <li class="disabled"><a>></a></li>
    </c:if>
    <c:if test="${page.pageEnd lt page.pageCount}">
        <li><a href="${APP_PATH}${page.url}&pageNo=${page.pageEnd+1}">></a></li>
    </c:if>
    <c:if test="${page.pageNo eq page.pageCount}">
        <li class="disabled"><a>末页</a></li>
    </c:if>
    <c:if test="${page.pageNo lt page.pageCount}">
        <li><a href="${APP_PATH}${page.url}&pageNo=${page.pageCount}">末页</a></li>
    </c:if>
</ul>
<ul class="pagination pull-right" style="margin: 0 0 0 0">
    <li class="disabled"><a style="margin: 0 0 0 0">当前第${page.pageNo}页，总${page.pageCount}
        页，总${page.recordCount}
        条记录</a></li>
</ul>
